<script setup>
import DefaultTheme from 'vitepress/theme'

const {Layout} = DefaultTheme
</script>

<style>
.sponsor {
  position: sticky;
  top: 0;
}

.sponsor img {
  width: 100%;
  max-width: 260px;
  margin-bottom: 5px;
}
</style>

<template>
  <Layout>
    <template #aside-top>
      <div>
        <div class="sponsor">
          <a href="https://aizuda.com/authorize?from=fld" target="_blank">
            <img src="https://foruda.gitee.com/images/1715955628416785121/954c16ef_12260.png"/>
          </a>
        </div>
        <div style="color: gray;order: 9999;font-size: smaller;margin: 6px">
          <span>广告</span>
          <span style="float: right">❤️<a href="/docs/sponsor.html">成为赞助商</a></span>
        </div>
      </div>
    </template>
  </Layout>
</template>